Stop Minding Your p's and q's: A Simplified O(n) Planar Embedding Algorithm

نویسندگان

  • John M. Boyer
  • Wendy J. Myrvold
چکیده

A graph is planar if it can be drawn on the plane with no crossing edges. There are several linear time planar embedding algorithms but all are considered by many to be quite complicated. This paper presents a new method for performing linear time planar graph embedding which avoids some of the complexities of previous approaches (including the need to rst st-number the vertices). Our new algorithm easily permits the extraction of a planar obstruction (a subgraph homeomorphic to K3;3 or K5) in O(n) time if the graph is not planar. Our algorithm is similar to the algorithm of Booth and Lueker which uses a data structure called a PQ-tree. The P-nodes in a PQ-tree represent parts of the partially embedded graph that can be permuted, and the Q-nodes represent parts that can be ipped. We avoid the use of P-nodes by not connecting pieces together until they become biconnected. We avoid Q nodes by using a data structure which allows biconnected components to be ipped in O(1) time. 1 Introduction An undirected graph G contains a set V of vertices and a set E of edges each which corresponds to an unordered pair of vertices from V. Throughout this paper, n is used to denote the number of vertices of a graph. Because loops (edges of the form (u; u)), and parallel edges (multiple edges with the same endpoints) provide no extra challenge, we assume that the graphs considered do not have loops or parallel edges (they are simple graphs). A graph is often drawn using points for the vertices and lines (possibly curved) for the edges. A geometric planar embedding of a graph is a drawing of the graph on a plane such that the vertices are placed in distinct positions and no two edges intersect except at common endpoints. Given a graph G, a planarity test algorithm determines if G has a planar embedding. A planar embedding algorithm also indicates the clockwise order of the neighbors of each vertex in such an embedding. To then generate a geometric planar embedding, one must choose vertex positions and edge shapes. This Supported by NSERC. is viewed as a separate problem, in part because it is application dependent. For example, our notion of what constitutes a suitable rendering of a graph may diier substantially if the graph represents an electronic circuit versus a hypertext book.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Stop Minding Your P's and Q's: Implementing a Fast and Simple DFS-Based Planarity Testing and Embedding Algorithm

In this paper we give a new description of the planarity testing and embedding algorithm presented by Boyer and Myrvold [2]. Such a description gives, in our opinion, new insights on the combinatorial foundations of the algorithm. Especially, we give a detailed illustration of a fundamental phase of the algorithm, called walk-up. This phase is essential for a correct and efficient implementatio...

متن کامل

SH3 Domains: Minding your p's and q's

SH3 domains mediate many important protein-protein interactions. The molecular basis of the binding of these domains to their ligands has been revealed, making it possible to identify SH3-binding sites in new proteins.

متن کامل

Minding your p's and q's

Over the last year or two, a large number of attacks have been found by the authors and others on protocols based on the discrete logarithm problem, such as ElGamal signature and Diffie Hellman key exchange. These attacks depend on causing variables to assume values whose discrete logarithms can be calculated, whether by forcing a protocol exchange into a smooth subgroup or by choosing degenera...

متن کامل

Algorithms for Testing and Embedding Planar Graphs

2 Embedding graphs into planarity 3 2.1 embedding algorithms donot use PQ-trees . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2.1.1 A planarity embedding algorithm based on the Kuratowski theorem . . . . . . . . 3 2.1.2 An embedding algorithm based on open ear decomposition . . . . . . . . . . . . . . 3 2.1.3 A simplified o (n) planar embedding algorithm for biconnected graphs . . ....

متن کامل

P versus Q: structural reaction coordinates capture protein folding on smooth landscapes.

Minding your p's and q's has become as important to protein-folding theorists as it is for those being instructed in the rules of etiquette. To assess the quality of structural reaction coordinates in predicting the transition-state ensemble (TSE) of protein folding, we benchmarked the accuracy of four structural reaction coordinates against the kinetic measure P(fold), whose value of 0.50 defi...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1999